<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angular-事件</title>
</head>
<body>

<div ng-app="app" ng-controller="testController">
    {{message}}
     <button ng-click="testClick()">按钮</button>
</div>

</body>
<script src="../lib/angular-1.5.0/angular.js"></script>
<script>

    const app = angular.module('app',[]);

    app.controller('testController',function ($scope) {
        $scope.message = "hello"

        $scope.testClick=function () {
            $scope.message = "hi"
        }
    })






</script>

</html>